/*****************************************************************************
*
*  PROJECT:     SlipStream
*               (CSound3D Class)
*  LICENSE:     GNU General Public License v3 - http://www.gnu.org/licenses/gpl.html

*  DEVELOPERS:  Philip Farquharson 	<B00137077@studentmail.uws.ac.uk>
*				John Gray 			<B00145524@studentmail.uws.ac.uk>		
*				Zohaib Bhatti		<B00104280@studentmail.uws.ac.uk>
*				Euan Hislop 		<B00138636@studentmail.uws.ac.uk>
*
*****************************************************************************/

#include "CSound3D.h"

CSound3D::CSound3D( ISound* SoundInterface )
{
	// store the sound created in CSoundManager in our CSound3D
	m_SoundInterface = SoundInterface;
}

CSound3D::~CSound3D ( void )
{
	// destroy our sound interface
	m_SoundInterface->drop();
}

void CSound3D::setPosition ( CVector3 vecPosition )
{
	m_SoundInterface->setPosition(vec3df(vecPosition.getX(), vecPosition.getY(), vecPosition.getZ()));
}

CVector3 CSound3D::getPosition ( void )
{
	vec3df v = m_SoundInterface->getPosition ();

	return CVector3(v.X, v.Y, v.Z);
}